package com.nebula.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.junit.runners.Parameterized.Parameters;

import com.nebula.pojo.Folders;

public interface FoldersMapper {
    int deleteByPrimaryKey(Integer folderid);

    int insert(Folders record);

    int insertSelective(Folders record);

    Folders selectByPrimaryKey(Integer folderid);

    int updateByPrimaryKeySelective(Folders record);

    int updateByPrimaryKey(Folders record);
    
    int selectFolderCount(Folders folder);
    
    List<Folders> selectFolderList(Folders folders);
    
    int selectAllFileFolderIdByUsername(String username);
    
    int plDelete(@Param("map") Map<String,List<Integer>> map,@Param("username") String username);
    
    List<Folders> selectFolderChildrenByParentId(@Param("parentid")Integer parentid,@Param("username") String username);
    
    List<Folders> selectFolderByParentId(Integer parentid);
    
    int selectParentIdByFolderId(Integer folderid);
    
    int plInsert(List<Folders> list);
    
    int selectFolderIdByParentIdAndFolderName(@Param("parentId")Integer parentId,@Param("folderName")String folderName);
    
    int selectFolderCountByPrimaryKey(Integer folderid);
}